package com.zhituanbox.extensions.config;

/**
 * 扩展消息属性配置
 *
 * @author LiuYang
 * @since 2020/9/21
 * @version 1.0.0
 */
public class ExtensionsMessageSourceProperties {
    /**
     * 是否启用（默认启用）
     * true:启用
     */
    private Boolean enable = Boolean.TRUE;

    /**
     * 扩展模式
     */
    private ExtensionsMessageSourceModeEnum mode = ExtensionsMessageSourceModeEnum.EXTENSIONS_THEN_DEFAULT;

    /**
     * <p>Getter for the field <code>enable</code>.</p>
     *
     * @return a {@link java.lang.Boolean} object.
     */
    public Boolean getEnable() {
        return enable;
    }

    /**
     * <p>Setter for the field <code>enable</code>.</p>
     *
     * @param enable a {@link java.lang.Boolean} object.
     */
    public void setEnable(Boolean enable) {
        this.enable = enable;
    }

    /**
     * <p>Getter for the field <code>mode</code>.</p>
     *
     * @return a {@link com.zhituanbox.extensions.config.ExtensionsMessageSourceModeEnum} object.
     */
    public ExtensionsMessageSourceModeEnum getMode() {
        return mode;
    }

    /**
     * <p>Setter for the field <code>mode</code>.</p>
     *
     * @param mode a {@link com.zhituanbox.extensions.config.ExtensionsMessageSourceModeEnum} object.
     */
    public void setMode(ExtensionsMessageSourceModeEnum mode) {
        this.mode = mode;
    }
}
